package com.kt.app.ui.components


import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import com.kt.app.TextSample

@Composable
fun BoxSample() {
    Box(
        modifier = Modifier.fillMaxSize().background(Color.White)

    ){
        Box(
            modifier = Modifier.align(Alignment.Center)
        ){
            Text("ABC")
        }
        Box(
            modifier = Modifier.align(Alignment.TopEnd)
        ){
            Text("123")
        }


    }


}

@Preview
@Composable
fun BoxSamplePreview() {
    BoxSample()
}

